import instance from '../index'
// 获取商品列表
export const getGoods = (params) => {
  return instance({
    url: '/appGoods/getAppGoodsList',
    method: 'get',
    params
  })
}
// 获取商品详情
export const getGoodsDetail = (params) => {
  return instance({
    url: '/appGoods/getAppGoodsDetail',
    method: 'get',
    params
  })
}

// 获取新商品或者热点商品列表
export const getHotAndNewGoodsList = (params) => {
  return instance({
    url: '/appGoods/getHotAndNewGoods',
    method: 'get',
    params
  })
}
